﻿using System;

// 接口InterfaceA：输出大写字母
interface InterfaceA
{
    void PrintCapitalLetter();
}

// 接口InterfaceB：输出小写字母
interface InterfaceB
{
    void PrintLowercaseLetter();
}

// Print类：实现两个接口
class Print : InterfaceA, InterfaceB
{
    public void PrintCapitalLetter()
    {
        for (char c = 'A'; c <= 'Z'; c++)
        {
            Console.Write(c + " ");
        }
        Console.WriteLine();
    }

    public void PrintLowercaseLetter()
    {
        for (char c = 'a'; c <= 'z'; c++)
        {
            Console.Write(c + " ");
        }
        Console.WriteLine();
    }
}

// 测试类
class Program
{
    static void Main(string[] args)
    {
        InterfaceA a = new Print();
        a.PrintCapitalLetter();

        InterfaceB b = new Print();
        b.PrintLowercaseLetter();
    }
}
